package com.infosys.facturacion;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.SystemColor;
import javax.swing.JTable;
import java.awt.FlowLayout;
import javax.swing.UIManager;
import java.awt.Color;
import javax.swing.JSplitPane;
import javax.swing.JComboBox;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.border.BevelBorder;

public class Gui_factura extends skin {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTable table;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;

	public Gui_factura() {
		super("Ingreso factura");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 683, 665);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("Nit:");
		lblNewLabel.setBounds(127, 36, 18, 16);
		contentPane.add(lblNewLabel);
		
		textField = new JTextField();
		textField.setBounds(157, 31, 81, 25);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel_1 = new JLabel("Nombre completo:");
		lblNewLabel_1.setBounds(43, 68, 102, 16);
		contentPane.add(lblNewLabel_1);
		
		textField_1 = new JTextField();
		textField_1.setBounds(157, 62, 347, 28);
		contentPane.add(textField_1);
		textField_1.setColumns(10);
		
		JLabel lblNewLabel_2 = new JLabel("Direccion:");
		lblNewLabel_2.setBounds(93, 108, 55, 16);
		contentPane.add(lblNewLabel_2);
		
		textField_2 = new JTextField();
		textField_2.setBounds(157, 102, 122, 28);
		contentPane.add(textField_2);
		textField_2.setColumns(10);
		
		JLabel lblNewLabel_3 = new JLabel("Fecha");
		lblNewLabel_3.setBounds(551, 6, 55, 16);
		contentPane.add(lblNewLabel_3);
		
		JPanel panel = new JPanel();
		panel.setBackground(Color.DARK_GRAY);
		panel.setBounds(6, 263, 656, 209);
		contentPane.add(panel);
		panel.setLayout(null);
		
		table = new JTable();
		table.setBounds(6, 6, 644, 197);
		panel.add(table);
		
		JLabel lblNewLabel_4 = new JLabel("IVA:");
		lblNewLabel_4.setBounds(52, 490, 25, 16);
		contentPane.add(lblNewLabel_4);
		
		textField_3 = new JTextField();
		textField_3.setBounds(79, 484, 66, 28);
		contentPane.add(textField_3);
		textField_3.setColumns(10);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
		panel_1.setBackground(UIManager.getColor("Button.light"));
		panel_1.setBounds(6, 136, 656, 107);
		contentPane.add(panel_1);
		panel_1.setLayout(null);
		
		JLabel lblNewLabel_5 = new JLabel("Articulo:");
		lblNewLabel_5.setBounds(95, 19, 55, 16);
		panel_1.add(lblNewLabel_5);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(6, 34, 219, 26);
		panel_1.add(comboBox);
		
		JLabel lblNewLabel_6 = new JLabel("Cantidad:");
		lblNewLabel_6.setBounds(273, 18, 55, 16);
		panel_1.add(lblNewLabel_6);
		
		textField_4 = new JTextField();
		textField_4.setBounds(259, 32, 82, 28);
		panel_1.add(textField_4);
		textField_4.setColumns(10);
		
		JLabel lblNewLabel_7 = new JLabel("Costo Unitario");
		lblNewLabel_7.setForeground(new Color(139, 0, 0));
		lblNewLabel_7.setBounds(366, 39, 93, 16);
		panel_1.add(lblNewLabel_7);
		
		JLabel lblNewLabel_8 = new JLabel("Costo por cantidad");
		lblNewLabel_8.setForeground(Color.BLUE);
		lblNewLabel_8.setBounds(503, 39, 116, 16);
		panel_1.add(lblNewLabel_8);
		
		JButton btnNewButton = new JButton("Agregar producto");
		btnNewButton.setBounds(178, 67, 122, 34);
		panel_1.add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("Quitar Producto");
		btnNewButton_1.setBounds(331, 67, 128, 34);
		panel_1.add(btnNewButton_1);
		
		JLabel lblNewLabel_9 = new JLabel("No. Factura:");
		lblNewLabel_9.setFont(new Font("SansSerif", Font.BOLD, 12));
		lblNewLabel_9.setBounds(256, 6, 71, 16);
		contentPane.add(lblNewLabel_9);
		
		JLabel lblNewLabel_10 = new JLabel("New label");
		lblNewLabel_10.setBounds(339, 6, 55, 16);
		contentPane.add(lblNewLabel_10);
		
		JLabel lblNewLabel_11 = new JLabel("Forma pago:");
		lblNewLabel_11.setBounds(6, 530, 71, 16);
		contentPane.add(lblNewLabel_11);
		
		JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setBounds(79, 525, 122, 26);
		contentPane.add(comboBox_1);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
		panel_2.setBounds(279, 484, 383, 75);
		contentPane.add(panel_2);
		GridBagLayout gbl_panel_2 = new GridBagLayout();
		gbl_panel_2.columnWidths = new int[]{192, 55, 0};
		gbl_panel_2.rowHeights = new int[]{16, 0, 0, 0};
		gbl_panel_2.columnWeights = new double[]{0.0, 1.0, Double.MIN_VALUE};
		gbl_panel_2.rowWeights = new double[]{0.0, 0.0, 0.0, Double.MIN_VALUE};
		panel_2.setLayout(gbl_panel_2);
		
		JLabel lblNewLabel_12 = new JLabel("Total:");
		GridBagConstraints gbc_lblNewLabel_12 = new GridBagConstraints();
		gbc_lblNewLabel_12.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_12.anchor = GridBagConstraints.NORTHEAST;
		gbc_lblNewLabel_12.gridx = 0;
		gbc_lblNewLabel_12.gridy = 0;
		panel_2.add(lblNewLabel_12, gbc_lblNewLabel_12);
		
		JLabel lblNewLabel_15 = new JLabel("New label");
		lblNewLabel_15.setForeground(new Color(255, 0, 0));
		GridBagConstraints gbc_lblNewLabel_15 = new GridBagConstraints();
		gbc_lblNewLabel_15.insets = new Insets(0, 0, 5, 0);
		gbc_lblNewLabel_15.gridx = 1;
		gbc_lblNewLabel_15.gridy = 0;
		panel_2.add(lblNewLabel_15, gbc_lblNewLabel_15);
		
		JLabel lblNewLabel_13 = new JLabel("Vuelto:");
		GridBagConstraints gbc_lblNewLabel_13 = new GridBagConstraints();
		gbc_lblNewLabel_13.anchor = GridBagConstraints.EAST;
		gbc_lblNewLabel_13.insets = new Insets(0, 0, 5, 5);
		gbc_lblNewLabel_13.gridx = 0;
		gbc_lblNewLabel_13.gridy = 1;
		panel_2.add(lblNewLabel_13, gbc_lblNewLabel_13);
		
		JLabel lblNewLabel_16 = new JLabel("New label");
		lblNewLabel_16.setForeground(new Color(0, 100, 0));
		GridBagConstraints gbc_lblNewLabel_16 = new GridBagConstraints();
		gbc_lblNewLabel_16.insets = new Insets(0, 0, 5, 0);
		gbc_lblNewLabel_16.gridx = 1;
		gbc_lblNewLabel_16.gridy = 1;
		panel_2.add(lblNewLabel_16, gbc_lblNewLabel_16);
		
		JLabel lblNewLabel_14 = new JLabel("Cantidad Pago:");
		GridBagConstraints gbc_lblNewLabel_14 = new GridBagConstraints();
		gbc_lblNewLabel_14.anchor = GridBagConstraints.EAST;
		gbc_lblNewLabel_14.insets = new Insets(0, 0, 0, 5);
		gbc_lblNewLabel_14.gridx = 0;
		gbc_lblNewLabel_14.gridy = 2;
		panel_2.add(lblNewLabel_14, gbc_lblNewLabel_14);
		
		textField_5 = new JTextField();
		GridBagConstraints gbc_textField_5 = new GridBagConstraints();
		gbc_textField_5.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_5.gridx = 1;
		gbc_textField_5.gridy = 2;
		panel_2.add(textField_5, gbc_textField_5);
		textField_5.setColumns(10);
		
		JButton btnNewButton_2 = new JButton("Generar Factura");
		btnNewButton_2.setBounds(187, 572, 153, 49);
		contentPane.add(btnNewButton_2);
		
		JButton btnNewButton_3 = new JButton("Cancelar");
		btnNewButton_3.setBounds(339, 572, 89, 49);
		contentPane.add(btnNewButton_3);
		setVisible(true);
		
	}
}
